<?php

namespace App\Filament\User\Pages;

use Filament\Facades\Filament;
use Filament\Forms\Components\TextInput;
use Filament\Pages\Page;
use App\Models\Plan;
use Filament\Actions\Action;
use Illuminate\Contracts\View\View;
use Yansongda\LaravelPay\Facades\Pay;
use Filament\Forms\Components\Radio;
use Filament\Forms\Components\Textarea;
use Filament\Support\Enums\Alignment;
use Filament\Support\Enums\MaxWidth;
use App\Models\Order;
use Filament\Notifications\Notification;
use App\Http\Controllers\OrderController;
use Filament\Forms\Components\Hidden;
use App\Http\Controllers\RechargeController;
use JaOcero\RadioDeck\Forms\Components\RadioDeck;
use App\Filament\Enums\AssetType;
use Filament\Support\Enums\IconSize;
use Filament\Support\Enums\IconPosition;
use App\Classes\CommonAction;

class plans extends Page
{
    protected static ?string $navigationIcon = 'heroicon-o-document-text';
    protected static string $view = 'filament.user.pages.plans';
    protected static bool $shouldRegisterNavigation = false;

    public $plans;

    public function mount(): void
    {
        $this->plans = Plan::all();
    }

    public function showBuyPlanModalAction():Action
    {
        return CommonAction::buyPlanAction('modal');
    }
}
